package com.qmai.util.dto;

/**
 * create by WG on 2019/12/18 14:03
 *
 * @author WangGang
 */
public class ResultUtil {
	public static <T> boolean isSuccess(Result<T> result) {
		return result != null && result.isStatus() && result.getData() != null;
	}

	public static <T> boolean isFailure(Result<T> result) {
		return !isSuccess(result);
	}

}
